package com.mindskip.xzs.viewmodel.admin.exam;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class EditExamReq {
    /**
     * 修改考试id
     */
    @NotNull(message = "修改考试id不能为空")
    private Long id;
    /**
     * 考试名称
     */
    @NotBlank(message = "考试名称不能为空")
    private String name;
    private String category;
    /**
     * 考试类型
     */
    @NotNull(message = "考试类型不能为空")
    private Integer examType;
    /**
     * 考试限制时间
     */
    private List<String> limitDateTime;
    /**
     * 试卷id
     */
    @NotNull(message = "试卷id不能为空")
    private Integer paperId;
    /**
     * 考试员工id
     */
    @NotEmpty(message = "参考员工id不能为空")
    private List<String> userIds;
}
